-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the with-parent-controls for #1662. #1717
Add the with-parent-controls for #1662. #1717
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this isn't the only location, I'll point out that 'true' cast as xs:boolean
returns true
but 'yes' cast as xs:boolean
returns a failure — 'yes' castable as xs:boolean
returns false
. 'no' castable as xs:boolean
returns false
.
"yes" and "no" found here and elsewhere were unfortunate choices when XML+XPath should have been considered.
However, the "yes" and "no" values are in accord with the OSCAL Profile Resolution Specification Draft and symmetric with with-child-controls
.
OK, that's a good point that is very much worth calling out. I know "truthiness" and "falsiness" vary a lot in other data formats and programming languages too. I would like to think about that outside this issue and PR, that requires a more significant analysis and conclusion. |
Elsewhere is correct. The concept is essentially "Is it boolean or enumerated", as well as "The attribute values seem to (in English) relate to the element name rather than the attribute". |
1987418
to
f0d7ff6
Compare
Nikita and I have some spec work to do, but we made the necessary prelim changes to the model in the profile metaschemas based on what Wendell proposed. @wendellpiez we do have some questions about how the spec and the inline metaschema docs document singular or plural and how it reflects the tree. Perhaps we discuss tomorrow? |
a268d1c
to
5151077
Compare
Add it for insert-controls, but not exclusion or merge, based upon team review and analysis of current profile resolution specification.
5151077
to
55527ef
Compare
…with-parent-controls-attribute-of-include-controls-element
@wendellpiez I think I am comfortable with you reviewing this now. I tried to simplify and go with a "less is more approach" to specification edits. Also, @GaryGapinski, let me know if you have any questions, comments, or concerns when you review. |
While preparing to review this PR and looking at Realized I should have looked relative to my local clone at the 1662… branch, looked in Switching to the When that All that was to satisfy a desire to look at the metaschema to find out why the old A look at |
@GaryGapinski, There is a gap between |
No: nothing need be done. I just wanted to check the absence of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to help work this further or contribute to due diligence thanks!
src/specifications/profile-resolution/profile-resolution-specml.xml
Outdated
Show resolved
Hide resolved
BTW, if lack of an explicit schema binding is really considered a problem, please consider using the PI-based mechanism described at https://www.w3.org/TR/xml-model/ instead of a more cumbersome and confusing method? |
Co-authored-by: Wendell Piez <[email protected]>
OK, @wendellpiez, I integrated changes given your feedback and clarification in today's pairing session, removing only redundancies in regards to the bullets below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caught a couple of small things please look
src/specifications/profile-resolution/profile-resolution-specml.xml
Outdated
Show resolved
Hide resolved
src/specifications/profile-resolution/profile-resolution-specml.xml
Outdated
Show resolved
Hide resolved
Co-authored-by: Wendell Piez <[email protected]>
…in the profile resolution spec that didn't exist in the model. Instead of updating the model, this PR removes the "with-parent-controls" feature from the profile resolution spec. This developmental feature should be removed for the following reasons. - This feature is not implemented in any of the current XSLT or Java implementations. - This feature is not being requested from a significant segment of the user community. The related issue usnistgov#1662 has support from 1 community member outside the NIST team. - This feature is extremely difficult to implement along with with-child-controls, which works on the opposite axis. - IMHO, profile resolution doesn't need to be made more complicated than it already is.
…in the profile resolution spec that didn't exist in the model. Instead of updating the model, this PR removes the "with-parent-controls" feature from the profile resolution spec. This developmental feature should be removed for the following reasons. - This feature is not implemented in any of the current XSLT or Java implementations. - This feature is not being requested from a significant segment of the user community. The related issue usnistgov#1662 has support from 1 community member outside the NIST team. - This feature is extremely difficult to implement along with with-child-controls, which works on the opposite axis. - IMHO, profile resolution doesn't need to be made more complicated than it already is.
* Revert changes from #1717 that address a documented feature in the profile resolution spec that didn't exist in the model. Instead of updating the model, this PR removes the "with-parent-controls" feature from the profile resolution spec. This developmental feature should be removed for the following reasons. - This feature is not implemented in any of the current XSLT or Java implementations. - This feature is not being requested from a significant segment of the user community. The related issue #1662 has support from 1 community member outside the NIST team. - This feature is extremely difficult to implement along with with-child-controls, which works on the opposite axis. - IMHO, profile resolution doesn't need to be made more complicated than it already is. * PR review, delete dangling with-parent-controls flag. --------- Co-authored-by: A.J. Stein <[email protected]>
* Revert changes from usnistgov/OSCAL#1717 that address a documented feature in the profile resolution spec that didn't exist in the model. Instead of updating the model, this PR removes the "with-parent-controls" feature from the profile resolution spec. This developmental feature should be removed for the following reasons. - This feature is not implemented in any of the current XSLT or Java implementations. - This feature is not being requested from a significant segment of the user community. The related issue usnistgov/OSCAL#1662 has support from 1 community member outside the NIST team. - This feature is extremely difficult to implement along with with-child-controls, which works on the opposite axis. - IMHO, profile resolution doesn't need to be made more complicated than it already is. * PR review, delete dangling with-parent-controls flag. --------- Co-authored-by: A.J. Stein <[email protected]>
* Revert changes from usnistgov/OSCAL#1717 that address a documented feature in the profile resolution spec that didn't exist in the model. Instead of updating the model, this PR removes the "with-parent-controls" feature from the profile resolution spec. This developmental feature should be removed for the following reasons. - This feature is not implemented in any of the current XSLT or Java implementations. - This feature is not being requested from a significant segment of the user community. The related issue usnistgov/OSCAL#1662 has support from 1 community member outside the NIST team. - This feature is extremely difficult to implement along with with-child-controls, which works on the opposite axis. - IMHO, profile resolution doesn't need to be made more complicated than it already is. * PR review, delete dangling with-parent-controls flag. --------- Co-authored-by: A.J. Stein <[email protected]>
* with-parent-controls for import only for usnistgov#1662 Add it for insert-controls, but not exclusion or merge, based upon team review and analysis of current profile resolution specification. * Clarify spec for usnistgov#1662. * Apply suggestions from code review Co-authored-by: Wendell Piez <[email protected]> * Update src/specifications/profile-resolution/profile-resolution-specml.xml * Apply suggestions from code review Co-authored-by: Wendell Piez <[email protected]> --------- Co-authored-by: Wendell Piez <[email protected]>
* with-parent-controls for import only for usnistgov#1662 Add it for insert-controls, but not exclusion or merge, based upon team review and analysis of current profile resolution specification. * Clarify spec for usnistgov#1662. * Apply suggestions from code review Co-authored-by: Wendell Piez <[email protected]> * Update src/specifications/profile-resolution/profile-resolution-specml.xml * Apply suggestions from code review Co-authored-by: Wendell Piez <[email protected]> --------- Co-authored-by: Wendell Piez <[email protected]>
* Revert changes from usnistgov#1717 that address a documented feature in the profile resolution spec that didn't exist in the model. Instead of updating the model, this PR removes the "with-parent-controls" feature from the profile resolution spec. This developmental feature should be removed for the following reasons. - This feature is not implemented in any of the current XSLT or Java implementations. - This feature is not being requested from a significant segment of the user community. The related issue usnistgov#1662 has support from 1 community member outside the NIST team. - This feature is extremely difficult to implement along with with-child-controls, which works on the opposite axis. - IMHO, profile resolution doesn't need to be made more complicated than it already is. * PR review, delete dangling with-parent-controls flag. --------- Co-authored-by: A.J. Stein <[email protected]>
Committer Notes
Add
with-parent-controls
to the OSCAL Profile metaschema to match current specification requirements for #1662.All Submissions:
"?
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
Changes to Core Features:
Have you written new tests for your core changes, as applicable?Have you included examples of how to use your new feature(s)?